<template>
  <div class="category">
    <h3>{{title}}</h3>

    <!-- 定义一个插槽 -->
    <slot name="top">默认值</slot>
    <slot name="down">默认值</slot>
  </div>
</template>

<script>
export default {
    name:'Category',
    props:['title']
}
</script>

<style scoped>
    .category{
        background-color: skyblue;
        width: 200px;
        height: 400px;
    }
    h3{
        text-align: center;
        background-color: orange;
    }
    video{
        width: 100%;
    }
    img{
        width:100%
    }
</style>